


void createlist(Linklist *L  int n);
{
     Linklist p;
     int i;

     srand(time(0));

     *L = (Linklist)malloc(sizeof(node));  
     *L->next = NULL; 


      for (i = 0;i < n;i++)
      { 	      
      p =(Linklist)malloc(sizeof(node));
      p->data = rand() % 100 +1;
      p->next = L->next;
      L->next = p;
      }
}
